11问答网
所有问题
当前搜索:
matlab heaviside
用
matlab
绘制波形图
答:
(4)>> syms t;>> f=cos(pi*t)*[
heaviside
(t-1)-heaviside(t-2)];>> ezplot(f)(5)>> syms t;>> f=exp(-t)*heaviside(cos(t));>> ezplot(f)
matlab
中ezplot函数问题,具体描述如下。
答:
Fw是 傅立叶变换后的 里面含有虚数 直接ABS是有错误的 (或者可能傅立叶变换后 Fw是无限长的 不能进行画图)
matlab
中的t=0:0.01:5;u=sin(t);sys=tf(100,[1 5 100]);lsim(sys,u...
答:
如果你用的版本有单位阶跃函数
heaviside
,则:t=0:0.01:5;u=2*heaviside(t);sys=tf(100,[1 5 100]);lsim(sys,u,t)如果你用的版本没有单位阶跃函数heaviside,则:heaviside1 = @(x) 0.0*(x < 0) + 1.0*(x > 0) + 0.5*(x == 0) % 单位阶跃函数 t=0:0.01:5;u=2...
我的
MATLAB
程序怎么第三个图片不能生成?
答:
p=0.01;t=0:p:2;x=
heaviside
(t)-heaviside(t-1);x(1)=1;x(101)=1;h=exp(-5*t);hl=h*p;y=conv(x,hl);y=y(1:length(t));subplot(3,1,1);plot(t,x);axis([-1,2,0,1.2]);title('x(t)');subplot(3,1,2);plot(t,h);axis([0,2,0,1.2]);title('h(t)...
信号与系统
MATLAB
实验画出f (t) = (1+ cosπt)[u(t) − u(t − 2...
答:
我试下 没问题,不过 我复制后显示 你的括号显示的是中文 ,改下就可以运行
MATLAB
,错误使用plot矢量长度必须相同.请帮忙修改程序。
答:
R=0.04;t=-3:R:3;f=
heaviside
(t+1)-heaviside(t-1);subplot(321);plot(t,f);xlabel('t');ylabel('f(t)');y=R*conv(f,f);n=-4:R:4; %R是步长,换一个就可以了 n=linspace(-4,4,length(y)); %换成这样就可以了 subplot(322);plot(n,y); %这里一直提示我错...
关于
matlab
ztrans函数
答:
这个结果应该是正确的。z变换定义: F(z) = symsum(f(n)/z^n, n, 0, inf),则 x=
heaviside
(n)有三种结果:n<0时,x=0;n=0时,x=0.5;n>0时,x=1,相应的z变换是 X=ztrans(x)有两种结果:n<0时,X=0;n>=0时,X=0.5/z^0+1/z+1/z^2+1/z^3+...+1/z^inf =0....
matlab
里的关于maple的问题
答:
是你
matlab
版本的问题,去下载maple toolbox就可以解决。新版本默认不支持maple了。
matlab
ezplot作图时出不来图
答:
clear;clc;syms tft=sin(t)*(
heaviside
(t+pi/2)-heaviside(t-pi/2));Fw=fourier(ft);hold on;ezplot(real(Fw),[-6 6]);ezplot(imag(Fw),[-6 6]);hold off;
matlab
的fourier()函数和fft()函数有什么区别?
答:
fourier()是算符号表达式的傅里叶变换的,算出来结果要画图可以用ezplot();fft()是算有限长离散序列的离散傅里叶变换的,算出来的结果画图要用stem()或者plot();举例:syms w;ezplot(fourier(pi*(
heaviside
(w+1)-heaviside(w-1)));用foutier();y=[zeros(1,20),ones(1,10),zeros(1,20)]...
首页
<上一页
8
9
10
11
13
14
15
16
17
下一页
12
尾页
其他人还搜